package com.example.stmp.Mapper;

import com.example.stmp.Entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface StudentMapper {
    void batchInsert(@Param("students") List<Student> students);
    void insertStudent(Student student);
    void deleteStudent(@Param("stId") String stId, @Param("status") int status);
    void updateStudent(Student student);
    Student selectStudentById(@Param("stId") String stId, @Param("status") int status);
    List<Student> selectAllStudents();
    List<Student> queryStudents(@Param("stId") String stId, @Param("stName") String stName, @Param("acId") String acId, @Param("role") String role);
}
